package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.EcMaterielCategory;
import com.ndp.fb.rdb.model.EcMaterielCategorys;

import java.util.List;

/**
 * Created by hexin on 2016/5/24.
 */
public interface EcMaterielCategoryRdbService {


    List<EcMaterielCategory> findAllCN();
    List<EcMaterielCategory> findAllUS();

    List<EcMaterielCategory> findSupportedCN();

    List<EcMaterielCategory> findSupportedUS();

    //支持模板库筛选的
    List<EcMaterielCategory> findSupportTemplateFilterCN();
    List<EcMaterielCategory> findSupportTemplateFilterUS();

    List<EcMaterielCategory> findCnByMaterielId(Long id);


    void save(Long tempMateId, List<EcMaterielCategorys> cids);

    EcMaterielCategory findById(Long pid);

    void deleteAllByEcTemplateMaterielId(Long ecTemplateMaterielId);

    List<EcMaterielCategory> findSupportMaterielFilterCN();

    List<EcMaterielCategory> findSupportMaterielFilterUS();

    EcMaterielCategory findByCategoryType(String CategoryType);

}
